<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="com.javapig.util.*,com.dd.*,java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<%@ include file="global.jsp"%>

<%
ArrayList AllXiangmus = null;
int nCount = 0;

AllXiangmus = XiangMuManager.GetUserManageedXiangMuByUserID(pageUser.getId());
if(AllXiangmus != null)
{
	nCount = AllXiangmus.size();
}


%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>采购员平台</title>
<style type="text/css">

h3{
	background-color: #2c58ff
}

a { 
color:green; 
} 
a:hover { 
color:blue; 
position:relative; 
top:2px; 
} 

h2 {background-color: transparent}
p {background-color: rgb(250,0,255)}
</style>
</head>
<body bgcolor="#ffffff">
	<div align="center">
	<h3>以下是你所管理的项目详情</h3>
	</div>
	<table border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
			 <%
                   if(nCount > 0)
                    {
                    	 Iterator it = AllXiangmus.iterator();
                    	 while(it.hasNext())
                    	 {
                    	 		XiangMu m_mx = (XiangMu)it.next();
                    	 		
                    	 		if(m_mx != null)
                    	 		{
                    	 			int xiangMuShiYeBuID = m_mx.getXiangMuShiYeID();
                    	 			//XiangMuShiYeBu xSY = new XiangMuShiYeBu(xiangMuShiYeBuID);
                    	 			int xiangMuId = m_mx.getId();
                    	 			
                    	 			int n_cgbi_dendaishenpiCount = XiangMuManager.getDengDai_CGBJ_CountByProjectID(xiangMuId);
                    	 			int n_cgbi_shenpitongguoCount = XiangMuManager.getTongGuo_CGBJ_CountByProjectID(xiangMuId);
                    	 			int n_cgbi_shenpijujueCount = XiangMuManager.getJuJue_CGBJ_CountByProjectID(xiangMuId);
                    	 			int n_cgbi_AllCount = XiangMuManager.getTotal_CGBJ_CountByProjectID(xiangMuId);
                    %>  
							<tr>
								<td width="193" height="77" bgcolor="#FFFFFF">
									<img src="uppic/<%=m_mx.getTuPian() %>" width="193" height="77" />
								</td>
							  <td width="250" bgcolor="#FFFFFF">
							  	<img id="imgtit" alt="" src="images/index_main_4.gif" style="border: 0px;" /> <br>
							  		<span style="color: #51A9D5; size: 12px;">
							  			<%=m_mx.getMingCheng() %>
							  		</span>
							  </td>
							  <td width="550" bgcolor="#FFFFFF">
							  <div align="center" style="color: #51A9D5; font-size: 12px">
							  <a href="sh_cgbj_list.jsp?XiangMuId=<%=xiangMuId%>">采购类比价单</a>
							  </div>							  
							  <hr/>
							  <div align="center" style="color: #999999; font-size: 12px">
							  等待审核的表单数目:&nbsp;&nbsp;  <span style="color: #ff0000; font-size: 10px"><%= n_cgbi_dendaishenpiCount%> </span><br>
							  审批通过的表单数目:&nbsp;&nbsp;  <%=n_cgbi_shenpitongguoCount%> <br>
							  审批拒绝的表单数目:&nbsp;&nbsp;  <%=n_cgbi_shenpijujueCount%>	<br>
							  总的表单数目	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	:&nbsp;&nbsp;   <%=n_cgbi_AllCount%>	<br>
							  
							  </div>
							  
							  </td>
							  
							  <td width="550" bgcolor="#FFFFFF">
							  <div align="center" style="color: #51A9D5; font-size: 12px">
							  <a href="sh_shigong_list.jsp?XiangMuId=<%=xiangMuId%>">施工类类比价单</a>
							  </div>							  
							  <hr/>
							  <div align="center" style="color: #999999; font-size: 12px">
							  等待审核的表单数目:&nbsp;&nbsp;  <span style="color: #ff0000; font-size: 10px"><%= 0%> </span><br>
							  审批通过的表单数目:&nbsp;&nbsp;  <%=0%> <br>
							  审批拒绝的表单数目:&nbsp;&nbsp;  <%=0%>	<br>
							  总的表单数目	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	:&nbsp;&nbsp;   <%=0%>	<br>
							  
							  </div>
							  </td>							  
		
							</tr>
                    <%
                    	 		}
                    	 	}
                    	}
                    %>

</table>
				

</BODY>
</HTML>
